package com.demos.springcloud.consumer02_feign.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.Map;

@Service
@FeignClient("getprovider")
public interface Provider2ServiceInterface {
    @GetMapping("get/data/{id}")
    Map<String, Object> service1(@PathVariable String id);
}
